import BasicLayout from './../layout/BasicLayout.vue'
import Home from '../views/Home.vue'
export default [
  {
    path: "/login",
    component: () => import("@/views/login/index"),
  },
  {
    path: '/',
    component: BasicLayout,
    redirect: '/index',
    children: [
      {
        path: '/index',
        name: 'index',
        meta: { title: "管理文件", icon: "snippets" },
        component: () => import('@/views/manageFile')
      },
      {
        path: '/migrantWages',
        name: 'migrantWages',
        redirect: '/migrantWages/inspectionRecord',
        component: { render: (h) => h('router-view') },
        meta: { title: "农民工工资", icon: "form" },
        children: [
          {
            path: '/migrantWages/inspectionRecord',
            name: 'inspectionRecord',
            // component: Home,
            meta: { title: "检查记录", icon: "form" },
            component: () => import('@/views/migrantWages/inspectionRecord'),
          },
          {
            path: '/migrantWages/assessmentRecord',
            name: 'assessmentRecord',
            // component: Home,
            meta: { title: "考核记录", icon: "form" },
            component: () => import('@/views/migrantWages/assessmentRecord'),
          },
          {
            path: '/migrantWages/protectionInfo',
            name: 'protectionInfo',
            // component: Home,
            meta: { title: "维权记录", icon: "form" },
            component: () => import('@/views/migrantWages/protectionInfo'),
          }
        ]
      },
      // {
      //   path: '/b',
      //   name: 'b',
      //   redirect: '/b/b1',
      //   component: { render: (h) => h('router-view') },
      //   meta: { title: "树", icon: "qq" },
      //   children: [
      //     {
      //       path: '/b/b1',
      //       name: 'b1',
      //       component: () => import('./../views/B/B1.vue'),
      //       meta: { title: "树1", icon: "user" }
      //     },
      //     {
      //       path: '/b/b2',
      //       name: 'b2',
      //       component: () => import('./../views/B/B2.vue'),
      //       meta: { title: "树2", icon: "user" }
      //     }

      //   ]
      // }
    ]
  }
]